package com.Iconcat.system.mapper;

import com.Iconcat.system.entity.CatProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CatProjectMapper extends BaseMapper<CatProject> {
    CatProject selectedSById(@Param("projectId") Integer projectId);
    int updateIsHiddenById(@Param("id") Integer id, @Param("isHidden") Boolean isHidden);
    @Delete("DELETE FROM cat_project WHERE project_id = #{id}")
    boolean deleteUserById(@Param("id") Integer id);
    boolean updateUserById(CatProject catProject);

    List<CatProject> getAllProjects();
}
